<?php
namespace App\Models\Mall;

use Illuminate\Database\Eloquent\Model;

class Order extends Model 
{
	protected $table = 'mall_order';

    protected $fillable = [
        'status',
    ];

	public function user()
    {
        return $this->belongsTo('App\User');
    }

	public function items()
    {
        return $this->hasMany('App\Models\Mall\OrderItem', 'order_id', 'id');
    }
}